<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="/resource/bootstrap/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="/resource/js/jquery-3.2.1/jquery.js"></script>
<script type="text/javascript" src="/resource/js/jquery.validate.js"></script>
<script type="text/javascript" src="/resource/js/jqueryvalidate/localization/messages_zh.js"></script>
<title>注册</title>
</head>
<body>
	<div class="container">
		<div class="row" style="margin-top: 150px">
			<div class="col-md-4"></div>
			<div class="col-md-4" style="border: solid; padding: 10px"></div>
			<form:form id="form" modelAttribute="user" method="post">
				<form:input path="uname" remote="/user/checkuser" />
				<form:errors path="uname"></form:errors>
				<br>
				<form:password path="password" />
				<form:errors path="password"></form:errors>
				<br>
				<form:button>注册</form:button>
			</form:form>

		</div>
		<div class="col-md-4"></div>
	</div>
	<script type="text/javascript">
		$("#form").validate();
	</script>
</body>
</html>